package cc.comac.mom.api;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import cc.comac.mom.bean.QualityAsrFeatures;
import cc.comac.mom.util.ResultBean;
@FeignClient(name = "mom-qar-srv")
public interface QualityAsrFeaturesService {
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/insertBatch",method = RequestMethod.POST)
	public ResultBean insertBatch(@RequestBody List<QualityAsrFeatures> qualityAsrFeaturesList);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/selectAllByPage",method = RequestMethod.POST)
	public ResultBean selectAllByPage(@RequestBody QualityAsrFeatures qualityAsrFeatures);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/insert",method = RequestMethod.POST)
	public ResultBean insert(@RequestBody QualityAsrFeatures qualityAsrFeatures);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody QualityAsrFeatures qualityAsrFeatures);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/batchDelete",method = RequestMethod.POST)
	public ResultBean batchDelete(@RequestBody List<QualityAsrFeatures> qualityAsrFeaturesList);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/exportData", method = RequestMethod.POST)
	String exportData(@RequestParam(value = "request") HttpServletRequest request, @RequestParam(value = "response") HttpServletResponse response,
			@RequestBody QualityAsrFeatures obj);
	
	@RequestMapping(value = "/p/cs/QualityAsrFeaturesService/importEquipDevType",consumes = MediaType.MULTIPART_FORM_DATA_VALUE,method = RequestMethod.POST)
	ResultBean importEquipDevType(@RequestPart("file") MultipartFile file,@RequestParam(value = "rootPath") String rootPath)throws IOException;

}
